# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-s3ve3g
pkgdesc="Samsung Galaxy S III Neo"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-s3ve3g mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="devicepkg-dev"
source="
	deviceinfo
	initfs-hook.sh
	udev/60-persistent-v4l.rules
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname

	install -Dm644 "$srcdir"/60-persistent-v4l.rules \
		"$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
}

sha512sums="9633fad10fd7415b91f55b6d9796108baaf2b0b88b909ff3688041f36e434a9493699865dbd51a1bd4cb0def822c9143900deec02ad676d55826805acb1252bf  deviceinfo
b6102448a5c04cc0f8527295f312d38affb250c6c248018f9dbe543d51824f0f32d3ee334d1caee1e630a07b49bda3d81dee50ea3cb04397100f369d308400f7  initfs-hook.sh
b8bf2e3ec166af6acbbfaaa2b57b053473c0b12df007090eecf7a885aee2e3cd5d982819e2ee73e2817e5266b9875dc9240389bca409d5523f3cfa8037fa7870  60-persistent-v4l.rules"
